package com.vshining.cryptoki;

import com.vshining.cryptoki.jna.CryptokiWrapper;

/**
 * @author Shining Wang <shiningwang@vshining.com>
 */
@SuppressWarnings("unused")
public class Cryptoki {
    private CryptokiWrapper wrapper;

    public Cryptoki(CryptokiWrapper wrapper) {
        this.wrapper = wrapper;
    }

    public static Cryptoki getInstance(String libraryName) throws CryptokiException {
        CryptokiWrapper wrapper = CryptokiWrapper.getInstance(libraryName);
        return new Cryptoki(wrapper);
    }

    //TODO 用java方法映射Cryptoki的函数
}
